<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
    <style>
      [v-cloak] {
        display: none;
      }
    </style>
  </head>

  <body>
    <div id="app">
      <!-- 
        v-cloak设置给某个拥有插值语法的模板,为了能在当前插值语法被vue介入之前操作一下
        我们在样式中通过[v-clock]选择当前元素,设置为隐藏
        v-clock在vue介入之后自动失效
       -->
      <div v-cloak>{{msg}}</div>
    </div>
    <script>
      debugger;
      Vue.config.productionTip = false;

      const vm = new Vue({
        el: "#app",
        data() {
          return {
            msg: "hello",
          };
        },
      });
    </script>
  </body>
</html>
